package com.guomao.demoh;

public class JavaDemo {

    public static void main(String[] args) {


        Calculator c = new Calculator() {
            @Override
            public int calculate(int a, int b) {
                return MathUtils.multiply(a, b);
            }
        };

        Calculator c1 = (a, b) -> MathUtils.multiply(a, b);
        Calculator c2 = MathUtils::multiply;
    }
}
